package ke07.rmi.aufgabe;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.Scanner;


public class RMIClientUpperCase {
	
	public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {

	    IUpperCase upper = (IUpperCase) Naming.lookup("//127.0.0.1/upString");
	    
	    Scanner s = new Scanner(System.in);
		System.out.print("Bitte geben sie einen Satz ein: ");
		String toSend = s.nextLine();
	    
	    
	    System.out.println("Antwort des Servers: "+upper.upper(toSend));
	}
}
